LOCAL_PATH := $(call my-dir)

#help 
#http://stackoverflow.com/questions/2943828/how-to-compile-a-static-library-using-the-android-ndk
#LOCAL_LDLIBS   = -lz -lm
#LOCAL_CFLAGS   = -Wall -pedantic -std=c99 -g

include $(CLEAR_VARS)

APP_STL := gnustl_static 

LOCAL_MODULE := sanangeles

LOCAL_CFLAGS := -DANDROID_NDK \
                -DDISABLE_IMPORTGL	\
                -Werror	\

LOCAL_SRC_FILES := \
	matsu/MTMath.cpp	\
	matsu/MTExt.cpp	\
	mio/MioLogger.cpp	\
	mio/MioPath.cpp	\
	mio/MioPlatform.cpp	\
	mio/MioReader.cpp	\
	mio/MioString.cpp	\
	sora/SRData.cpp	\
	sora/SRModel.cpp	\
	sora/SRObjModel.cpp	\
	sora/SRModelLoader.cpp	\
	sora/SRGLMachine.cpp	\
	sora/SRObjModelLoader.cpp	\
	sora/SRPrimitiveModel.cpp	\
	sora/SRRenderer.cpp	\
	sora/SRShader.cpp	\
	sora/SRPlatform.cpp	\
	sora/SRScene.cpp	\
	sora/SRLight.cpp	\
	sora/SRSceneNodeVisitor.cpp	\
	sora/SRResource.cpp	\
	sora/SREngine.cpp	\
	sage/gl_code.cpp	\
	sage/SimpleRenderApp.cpp	\

LOCAL_C_INCLUDES := \
	mio	\
	matsu	\
	sora	\

LOCAL_LDLIBS := -lGLESv1_CM -ldl -llog	 -Wl
include $(BUILD_SHARED_LIBRARY)
